<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui的使用</title>
    <!--引入layui的核心css文件-->
    <link rel="stylesheet" type="text/css" href="layui/css/layui.css">
    <!--layui的核心js文件（采用模块化引入）-->
    <script src="layui/layui.js" type="text/javascript" charset="utf-8"></script>
    <script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>

<!-- 你的HTML代码 -->
 
<script src="../layui/layui.js"></script>
<script>
//一般直接写在一个js文件中
layui.use(['layer', 'form'], function(){
  var layer = layui.layer
  ,form = layui.form;
  layer.open({
    type:0,
    // title:"系统消息",
    title:['系统消息','color:red'],
    // title:"false",
    // content:"hello"
    content:"<div style='height:100px;width:200px'>hello</div>"

  });
  // layer.msg('Hello World');
});
</script> 
</body>

</html>